<script src="{pigcms{$static_path}js/account.js"></script>
<script>
	var href = location.href.match(/\/\/.+?\/(.+)/)[1];
	var n = href;
	if (href.indexOf("account/adddomains") < 0) {
		try { n = href.match(/(.+?\/.+?)\//i)[1]; }
		catch (e) { };
	}
	if(href.indexOf("c=Account&a=sellnegotiation_detail") > 0 || href.indexOf("c=Account&a=sellnegotiation") > 0){
		n='index.php?c=Account&a=sellnegotiation';
	}
	if(href.indexOf("c=Account&a=negotiation_detail") > 0 || href.indexOf("c=Account&a=negotiation") > 0){
		n='index.php?c=Account&a=negotiation';
	}
	if(href.indexOf("c=Account&a=dealdetails") > 0 || href.indexOf("c=Account&a=deals") > 0){
		n='index.php?c=Account&a=deals';
	}
	if(href.indexOf("c=Account&a=allsell") > 0){
		n='index.php?c=Account&a=allsell';
	}
	if(href.indexOf("c=Account&a=pldomain") > 0){
		n='index.php?c=Account&a=pldomain';
	}
	if(href.indexOf("c=Account&a=allsell&type=4") > 0){
		n='index.php?c=Account&a=bargain';
	}
	if(href.indexOf("c=Account&a=allsell&type=2") > 0){
		n='index.php?c=Account&a=aprice';
	}
	if(href.indexOf("c=Account&a=allsell&type=3") > 0){
		n='index.php?c=Account&a=fastbid';
	}
	if(href.indexOf("c=Account&a=partakefast") > 0){
		n='c=Account&a=partakefast';
	}
	if(href.indexOf("c=Account&a=bindEmail") > 0 || href.indexOf("c=Account&a=logprotect") > 0 || href.indexOf("c=Account&a=loginlog") > 0){
		n='index.php?c=Account&a=bind';
	}
	var sld_a = $(".process1 li a[href*='" + n + "']");
	if (sld_a.length == 0) {
		$(".process1:first").css("display", "block");
	} else {
		sld_a.addClass("t");
		if (n == 'account/adddomains')
			$(".process1 li a[href*='account/adddomains/pl']").removeClass('t');
		var sld_h3 = sld_a.parent(0).parent(0).parent(0).prev();
		//var pos_y = getPos_y(sld_h3);
		//sld_h3.addClass("active_s").css("background-position", "0px " + (-pos_y - 74) + "px");
		sld_a.parent(0).parent(0).parent(0).css("display", "block");
	}
</script>